package com.stqf.scala.grammar.basic

/**
  * Created by ASUS on 2018-01-31.
  */
object UnderlineUse {
  def main(args: Array[String]): Unit = {
    var str: Any = null
    str = ""
    println(str == null)
    val res = (1 to 10).map(_ * 2)
    println(res.getClass.getName)
    val maps = Map(
      "dns1" -> "192.168.0.1",
      "dns3" -> "114.114.114.114",
      "dns2" -> "8.8.8.8"
    )
    maps.foreach(s => println(s._1 + "\t" + s.getClass.getName))

  }

  def method(str: String) = {
    println("Hello World")
  }
}
